<?php

namespace App\Http\Controllers;

use App\Module\OrderModule;
use App\Module\UserModule;
use Illuminate\Http\Request;

class UserController extends BaseController
{

    public function init(Request $request){
        $this->run(UserModule::class, 'init', $request);
        return $this->response();
    }

    public function list(Request $request)
    {
        $this->run(UserModule::class, 'list', $request);
        return $this->response();
    }


    public function del(Request $request)
    {
        $this->run(UserModule::class, 'del', $request);
        return $this->response();
    }

    public function edit(Request $request)
    {
        $this->run(UserModule::class, 'edit', $request);
        return $this->response();
    }

    public function check(Request $request)
    {
        $this->run(UserModule::class, 'check', $request);
        return $this->response();
    }

    public function login(Request $request)
    {
        $this->run(UserModule::class, 'login', $request);
        return $this->response();
    }

    public function detail(Request $request){

        $this->run(UserModule::class, 'detail', $request);
        return $this->response();

    }

    public function sendCode(Request $request){

        $this->run(UserModule::class, 'sendCode', $request);
        return $this->response();

    }

    public function register(Request $request){

        $this->run(UserModule::class, 'register', $request);
        return $this->response();

    }


    public function changeProfile(Request $request){
        $this->run(UserModule::class, 'changeProfile', $request);
        return $this->response();
    }

    public function permissions(Request $request){
        $this->run(UserModule::class, 'permissions', $request);
        return $this->response();
    }

    public function loginOut(Request $request){
        $this->run(UserModule::class, 'loginOut', $request);
        return $this->response();
    }

    public function ping(Request $request){

        $this->run(UserModule::class, 'ping', $request);
        return $this->response();

    }

    public function forget(Request $request){

        $this->run(UserModule::class, 'forget', $request);
        return $this->response();

    }

    public function reset(Request $request){
        $this->run(UserModule::class, 'reset', $request);
        return $this->response();

    }

    public function trade(Request $request){
        $this->run(UserModule::class, 'trade', $request);
        return $this->response();

    }

}
